package com.fxu.framework.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/***
 * 详情请求类
 * @author fangxu
 * @version 1.0.0
 ***/
@Setter
@Getter
@ApiModel(value = "DetailReq", description = "详情请求类")
public class DetailReq implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID", required = true)
    @NotNull(message = "id不能为空")
    @Min(value = 1, message = "id必须大于零")
    private Long id;

}
